﻿@model IEnumerable<ESupervision.Models.Student>

@{
    ViewBag.Title = "Allocate";
}

<h2>Allocate Students</h2>
<hr/>
@using (Html.BeginForm("AllocateCompleted", "Allocating"))
{ 
    @Html.AntiForgeryToken()
    <div class="row">
        @Html.ValidationSummary(true)
        <h4>Please select Supervisor and Second Marker for the following students</h4>
        <hr />
        <ul>
            @foreach (var item in Model)
            {
                <li>@Html.DisplayFor(modelItem => item.FullName)</li>
                @Html.HiddenFor(modelItem => item.Id, new { @id = "studentIds", @Name = "studentIds" })
            }
        </ul>
    </div>
    <div class="form-horizontal">
        <div class="form-group">
            <label class="control-label col-md-2" for="Supervisor">Supervisor</label>
            <div class="col-md-10">
                @Html.DropDownList("Supervisor", null, htmlAttributes: new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2" for="SecondMarker">Second Marker</label>
            <div class="col-md-10">
                @Html.DropDownList("SecondMarker", null, htmlAttributes: new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Allocate" class="btn btn-default" />
            </div>
        </div>
    </div>
}



